package sample

import (
	"fmt"
	"gitee.com/runx/dm/pkg/bfs"
	"gitee.com/runx/dm/pkg/entry"
	"github.com/spf13/cobra"
)

var (
	sampleCmd = &cobra.Command{
		Use:   "sample",
		Short: "echo template cue define file",
		RunE: func(c *cobra.Command, args []string) error {
			data, err := bfs.Asset("res/example.cue")
			if err != nil {
				// Asset was not found.
			}
			fmt.Println(string(data))
			return nil
		},
	}
)

func init() {
	entry.AddCmd(sampleCmd)
}
